﻿using System.Collections.Generic;

namespace User.Api.Dto.BillOrder
{
    public class GetOrderDetailResponse : BaseResponse
    {
        /// <summary>
        /// 订单Id
        /// </summary>
        public int OrderId { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        public string OrderNo { get; set; }

        /// <summary>
        /// 就诊卡号
        /// </summary>
        public string CardNo { get; set; }

        /// <summary>
        /// 就诊人姓名
        /// </summary>
        public string CardName { get; set; }

        /// <summary>
        /// 就诊流水号
        /// </summary>
        public string ClinicNo { get; set; }

        /// <summary>
        /// 缴费单开单费用
        /// </summary>
        public string PrescMoney { get; set; }

        /// <summary>
        /// 缴费单开单科室
        /// </summary>
        public string OrderDept { get; set; }

        /// <summary>
        /// 缴费单开单时间
        /// </summary>
        public string OrderDate { get; set; }

        /// <summary>
        /// 是否使用了医保
        /// </summary>
        public bool HasYiBao { get; set; }

        /// <summary>
        /// 医保记账金额
        /// </summary>
        public string Charges { get; set; }

        /// <summary>
        /// 个人支付金额
        /// </summary>
        public string Cost { get; set; }

        /// <summary>
        /// 缴费单项目明细列表
        /// </summary>
        public List<BillItem> Items { get; set; }

        /// <summary>
        /// 发药窗口提醒
        /// </summary>
        public List<DisWinItem> DisWins { get; set; } 

        public class BillItem
        {
            /// <summary>
            /// 项目费用类型
            /// </summary>
            public string Type { get; set; }

            /// <summary>
            /// 项目名称
            /// </summary>
            public string Name { get; set; }

            /// <summary>
            /// 项目数量
            /// </summary>
            public string Account { get; set; }

            /// <summary>
            /// 项目单位
            /// </summary>
            public string Unit { get; set; }

            /// <summary>
            /// 项目单价
            /// </summary>
            public string ItemPrice { get; set; }

            /// <summary>
            /// 项目小计
            /// </summary>
            public string Money { get; set; }
        }

        public class DisWinItem
        {
            /// <summary>
            /// 收据号
            /// </summary>
            public string RcptNo { get; set; }
            /// <summary>
            /// 新流水号
            /// </summary>
            public string VisitNo { get; set; }
            /// <summary>
            /// 发药地址
            /// </summary>
            public string DisWinAdd { get; set; }
            /// <summary>
            /// 发药窗口（先不显示）
            /// </summary>
            public string DisWin { get; set; }
        }        
    }
}